<ul>
    @foreach($data['lessons'] as $lesson)
    <li style="min-height: 195px;">
        <div class="video">
            <a href="<?= $lesson->generate_link() ?>">
                <span class="video_thumb_grid ux_thumb">
                    <span class="clip">
                        <img src="{{$lesson->thumbnail_link()}}"/>
                    </span>
                </span>
            </a>

        </div>
        <div class="ct">
            <a href="<?= $lesson->generate_link() ?>">
                <?= str_limit($lesson->title, 40, '...') ?>
            </a>

            <div>
                <span class="font12 color66">bởi:</span>
                <a href="<?= route('thanh-vien', array('id' => $lesson->id, 'slug' => Str::slug($lesson->username))) ?>"
                   class="font12 color55 displayin">
                    <?= $lesson->username ?>
                </a>
            </div>
            <div>
                <span class="font11 color99"><?= $lesson->thanks ?> bình chọn</span>
                <span class="font11 color99"><?= $lesson->views ?> lượt xem</span>
            </div>
        </div>
    </li>
    @endforeach
</ul>
<div class="box-phantrang">
    {{ $data['lessons']->links()}}
</div>